package com.ganmiao.server.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ganmiao.server.user.entity.MallUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface MallUserMapper extends BaseMapper<MallUser> {

    @Update({
            "<script>",
            "update mall_user set third_user_id = #{thirdUserId} where user_id = #{userId}",
            "</script>"
    })
    void updateThirdUserId(@Param("userId") int userId,
                           @Param("thirdUserId") String thirdUserId);
}
